package org.jeecg.modules.solitaire_app.app.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 套餐订单表
 * @Author: jeecg-boot
 * @Date:   2023-08-29
 * @Version: V1.0
 */
@Data
@TableName("ysy_meal_order")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ysy_meal_order对象", description="套餐订单表")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class YsyMealOrder {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**下单时间*/
	@Excel(name = "下单时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单时间")
	private Date createTime;
	/**所属用户*/
	@Excel(name = "所属用户", width = 15)
    @ApiModelProperty(value = "所属用户")
	private String userId;
	/**所属用户*/
	@Excel(name = "用户昵称", width = 15)
	@ApiModelProperty(value = "用户昵称")
	private String userName;
	/**所属用户*/
	@Excel(name = "用户手机号", width = 15)
	@ApiModelProperty(value = "用户手机号")
	private String userPhone;
	/**订单描述*/
	@Excel(name = "订单描述", width = 15)
    @ApiModelProperty(value = "订单描述")
	private String orderDesc;
	/**订单原价*/
	@Excel(name = "订单原价", width = 15)
    @ApiModelProperty(value = "订单原价")
	private java.math.BigDecimal oriPrice;
	/**折扣描述*/
	@Excel(name = "折扣描述", width = 15)
    @ApiModelProperty(value = "折扣描述")
	private String discountDesc;
	/**折扣金额*/
	@Excel(name = "折扣金额", width = 15)
    @ApiModelProperty(value = "折扣金额")
	private java.math.BigDecimal discountPrice;
	/**实际支付金额*/
	@Excel(name = "实际支付金额", width = 15)
    @ApiModelProperty(value = "实际支付金额")
	private java.math.BigDecimal totalPrice;
	/**优惠券id*/
	@Excel(name = "优惠券id", width = 15)
    @ApiModelProperty(value = "优惠券id")
	private String couponId;
	/**优惠金额*/
	@Excel(name = "优惠金额", width = 15)
    @ApiModelProperty(value = "优惠金额")
	private java.math.BigDecimal couponPrice;
	/**支付方式：1-微信，2-支付宝，3-零钱*/
	@Excel(name = "支付方式：1-微信，2-支付宝，3-零钱", width = 15)
    @ApiModelProperty(value = "支付方式：1-微信，2-支付宝，3-零钱")
	private Integer payType;
	/**服务次数*/
	@Excel(name = "服务次数", width = 15)
    @ApiModelProperty(value = "服务次数")
	private Integer countNum;
	/**状态：0-未支付，1-已支付，2-已退款*/
	@Excel(name = "状态：0-未支付，1-已支付，2-已退款", width = 15)
    @ApiModelProperty(value = "状态：0-未支付，1-已支付，2-已退款")
	private Integer status;

	/**订单来源：1-封车订单，2-车辆轨迹订单*/
	@Excel(name = "订单来源：1-封车订单，2-车辆轨迹订单", width = 15)
	@ApiModelProperty(value = "订单来源：1-封车订单，2-车辆轨迹订单")
	private Integer sourceType;
}
